<!--
  Generated template for the Modalsearch page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>
	<ion-navbar>
		<ion-buttons start>
			<button ion-button icon-only (click)="doback()">
				<ion-icon name="arrow-back"></ion-icon>返回
			</button>
		</ion-buttons>
		<ion-title>搜索条件</ion-title>
	</ion-navbar>
</ion-header>

<ion-content>
	<ion-list class="searchhead">
		<ion-item class="sitem" *ngIf="inputView.applyapplytitle">
			<ion-label fixed>{{inputViewName.applyapplytitle}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applyapplytitle"></ion-input>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyapplycode">
			<ion-label fixed>{{inputViewName.applyapplycode}}</ion-label>
			<ion-select [(ngModel)]="inputViewModel.applyapplycode" interface="popover" [compareWith]="comparecode">
				<ion-option *ngFor="let item of inputSelectView.applyDefItems" [value]="item">{{item.name}}</ion-option>
			</ion-select>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyapplytruename" style="width:100%;">
			<ion-label fixed>{{inputViewName.applyapplytruename}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applyapplytruename"></ion-input>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyapplymember" tappable (click)="applyapplymemberselect()">
			<ion-label fixed>{{inputViewName.applyapplymember}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applyapplymember.name" readonly="true"></ion-input>
			<i class="iconfont icon-sousuo" item-end></i>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyapplycompany" tappable (click)="applyapplycompanyselect()">
			<ion-label fixed>{{inputViewName.applyapplycompany}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applyapplycompany.name" readonly="true"></ion-input>
			<i class="iconfont icon-sousuo" item-end></i>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyapplydepart" tappable (click)="applyapplydepartselect()">
			<ion-label fixed>{{inputViewName.applyapplydepart}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applyapplydepart.name" readonly="true"></ion-input>
			<i class="iconfont icon-sousuo" item-end></i>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyapplyno">
			<ion-label fixed>{{inputViewName.applyapplyno}}</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applyapplyno"></ion-input>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyapplyurgent" style="width:100%;">
			<ion-label fixed>{{inputViewName.applyapplyurgent}}</ion-label>
			<ion-select [(ngModel)]="inputViewModel.applyapplyurgent" interface="popover" [compareWith]="comparecode">
				<ion-option *ngFor="let item of inputSelectView.applyDefItems" [value]="item">{{item.name}}</ion-option>
			</ion-select>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applystarttime">
			<ion-label fixed>{{inputViewName.applystarttime}}</ion-label>
			<ion-datetime [(ngModel)]="inputViewModel.applystarttime" type="datetime-local" pickerFormat="YYYY-MM-DD" displayFormat="YYYY-MM-DD"
			 min="{{inputSelectView.applyoaminDate}}" max="{{inputSelectView.applyoamaxDate}}" cancelText="取消" doneText="确认"></ion-datetime>
		</ion-item>
		<ion-item class="sitem" *ngIf="inputView.applyendtime">
			<ion-label fixed>{{inputViewName.applyendtime}}</ion-label>
			<ion-datetime [(ngModel)]="inputViewModel.applyendtime" type="datetime-local" pickerFormat="YYYY-MM-DD" displayFormat="YYYY-MM-DD"
			 min="{{inputSelectView.applyoaminDate}}" max="{{inputSelectView.applyoamaxDate}}" cancelText="取消" doneText="确认"></ion-datetime>
		</ion-item>
	</ion-list>
	<div class="searchheadaction">
		<button ion-button style="margin-right: 10px;" (click)="dosearch()">查询</button>
		<button ion-button style="margin-left: 10px;" (click)="doclear()">重置</button>
	</div>
</ion-content>